
#!/usr/bin/env python3
# encoding=utf-8

import mongoengine as db

from app.db import BaseDocument


class IPv6CheckUrls(BaseDocument):
    meta = {
        'db_alias': 'wass',
        'collection': 'scan_ipv6_change_urls',
        'strict': False
    }

    task_id = db.StringField()
    task_session_id = db.StringField()
    job_id = db.StringField()
    url = db.StringField()
    ip = db.StringField()
    is_foreign_link = db.BooleanField()
    referer = db.StringField()
    depth = db.IntField()
    is_redirect = db.BooleanField()
    redirect_url = db.StringField()
    status_code = db.IntField()
    url_type = db.StringField()
    request_method = db.StringField()
    request_headers = db.DictField()
    response_version = db.StringField()
    response_headers = db.DictField()
    created_at = db.DateTimeField()
    updated_at = db.DateTimeField()
